home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
utility
/
horst_2.zip
/
PCHECK.DOC
< prev
next >
Wrap
Text File
|
1995-12-18
|
1KB
|
33 lines
------------------------------------------------------------------------
PCHECK printer check, reset (c) 1995 Horst Schaeffer
------------------------------------------------------------------------
PCKECK checks if the printer is ready. Reset Option.
Will only work for parallel printer ports.
Syntax: PCHECK [options]
Option /R printer (hardware) reset
/N (n=1..4) printer device number (default=1)
Errorlevel 0 printer is ready
else not ready
With Option /R the printer may return "not ready" because it usually
takes a few seconds until the reset is done.
If you care:
A non-zero errorlevel represents the status bit pattern:
bit decimal status
0 1 time out
3 8 I/O error
4 16 NOT online
5 32 paper out
7 128 NOT ready
The errorlevel is the sum of the decimal values for bits set.
There is no general rule, which combination will be reported.
= 17 MAY 1995